﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.IO;

namespace WebApplication1
{
    [ServiceContract]
    public interface IDataService
    {        
        [OperationContract]
        byte[] ReadAllImageBytes(string fileName);

        [OperationContract]
        byte[] ReadAllThumbnailBytes(string fileName);

        [OperationContract]
        void WriteAllBytes(string fileName, byte[] bytes);

        [OperationContract]
        void Copy(string orig, string newFileName);

        [OperationContract]
        void Move(string orig, string newFileName);

        [OperationContract]
        void Delete(string fileName);

        [OperationContract]
        bool Exists(string fileName);

        [OperationContract]
        void SetAttributes(string fileName, FileAttributes attribs);
    }
}
